<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%--使用taglib 引入标签库--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
</head>
<body>
<form method="post" action="" id="listform">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder"> 请假信息列表</strong>
        </div>
        <div class="padding border-bottom">
            <ul class="search" style="padding-left:10px;">
                <%--<li><a class="button border-main icon-plus-square-o" href="?action=input"> 添加</a></li>--%>
                <li><a class="button border-main icon-plus-square-o" href="?action=export"> 导出</a></li>
                <li>搜索：</li>

                <form method="post" id="searchForm">
                    <input type="text" id="searchInput" placeholder="请输入搜索学生学号" name="stuNo11" class="input"
                           style="width:250px; line-height:17px;display:inline-block"/>
                    <button type="submit" class="button border-main icon-search"> 搜索</button>
                </form>
            </ul>
        </div>
        <table class="table table-hover text-center">
            <tr>
                <th>请假编号</th>
                <th>课程编号</th>
                <th>请假事由</th>
                <th>天数</th>
                <th>学号</th>
                <th>请假时间</th>
                <th>状态</th>
                <th>审核时间</th>
                <th>审核意见</th>
                <%--<th>状态</th>
                <th>邮箱</th>--%>
                <th>操作</th>
            </tr>
            <%--使用JSTL迭代标签输出用户信息(User)列表list--%>
            <c:forEach var="m" items="${list}" varStatus="i">
                <tr>
                    <td>${m.leaveID}</td>
                    <td>${m.courseID}</td>
                    <%--<td><c:choose>
                        <c:when test="${m.status==1}">
                            正常
                        </c:when>
                        <c:otherwise>
                            禁用
                        </c:otherwise>
                    </c:choose>
                    </td>--%>
                    <td>${m.reason}</td>
                    <td>${m.daynum}</td>
                    <td>${m.stuNo}</td>
                    <td>${m.applytime}</td>
                    <td>${m.status}</td>
                    <td>${m.datetime}</td>
                    <td>${m.opinion}</td>
                    <td>
                        <div class="button-group">
                            <a class="button border-main" href="?action=get&id=${m.leaveID}"><span
                                class="icon-edit"></span> 审核</a>
                            <a class="button border-red" href="?action=delete&id=${m.leaveID}"
                                                                    ><span class="icon-trash-o"></span> 删除</a></div>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <div class="pagelist"><a href="">上一页</a> <span class="current">1</span><a href="">2</a><a
                href="">3</a><a href="">下一页</a><a href="">尾页</a></div>
    </div>
</form>
<script type="text/javascript">

</script>
</script>
</body>
</html>
